<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlertShopTypeToOpenShopSiteLocations extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_site_locations', function (Blueprint $table) {
            $table->unsignedInteger('shopType')->default(0)->comment('店型');
            $table->string('siteSelection', 36)->default('')->comment('选址场景 多个逗号隔开');
            $table->unsignedInteger('siteSelectionGrade')->default(0)->comment('选址场景分级');
            $table->string('sellingCategory', 36)->default('')->comment('售卖品类 多个逗号隔开');
            $table->unsignedInteger('menuLevel')->default(0)->comment('产品定价');
            $table->unsignedInteger('posLine')->default(0)->comment('点餐动线');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_site_locations', function (Blueprint $table) {
            $table->dropColumn('shopType');
            $table->dropColumn('siteSelection');
            $table->dropColumn('sellingCategory');
            $table->dropColumn('menuLevel');
            $table->dropColumn('posLine');
        });
    }
}
